<template>
  <div>
    <!-- 底部tab栏 -->
    <van-tabbar v-model="active" route>
      <van-tabbar-item to="/home" icon="wap-home">首页</van-tabbar-item>
      <van-tabbar-item to="/member" icon="user-o">会员</van-tabbar-item>
      <van-tabbar-item to="/cart" icon="cart-o" :info="car.length">购物车</van-tabbar-item>
      <van-tabbar-item to="/search" icon="search">搜索</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  data() {
    return {
      active: 0
    };
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(["car"])
  }
};
</script>

<style lang="less" scoped>
</style>